package com.xmkj.bearbiz.member.adaper;

import android.content.Context;

import com.common.BearBean.ChuZhiBean;
import com.common.BearBean.OrderListInfo;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearbiz.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/7/26
 * 描述：
 */

public class ChuZhiAdapter extends CommonAdapter<ChuZhiBean> {
    public ChuZhiAdapter(Context context, List<ChuZhiBean> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, ChuZhiBean item, int position) {
        holder.setText(R.id.tv_date,item.date);
        holder.setText(R.id.tv_chushie,item.begin_money);
        holder.setText(R.id.tv_chuzhi_change,item.change_money);
        holder.setText(R.id.tv_beizhu,item.remarks);
        holder.setText(R.id.tv_balance,item.surplus_money);
    }

    @Override
    protected int getItemViewLayoutId(int position, ChuZhiBean item) {
        return R.layout.item_user_chuzhi;
    }
}
